<?php
    switch ($aplicativo['nome']){
        case "Twitter":
            $link = 'http://www.twitter.com/'.$login;
            break;
        case "MSN":
            $link = 'mailto:'.$login;
            break;
        case "Google Talk":
            $link = 'mailto:'.$login.'@gmail.com';
            break;
        case "Orkut":
            $link = 'http://www.orkut.com/Profile.aspx?uid='.$login;
            break;
        case "Facebook":
            $link = 'http://www.facebook.com/profile.php?id='.$login;
            break;
        case "Last.fm":
            $link = 'http://www.last.fm/user/'.$login;
            break;
        case "Site":
            $link = $login;
            break;
    }

    echo $html->link(
            $html->image($aplicativo['icone'], array("alt" => $aplicativo['nome'])),
            $link, array('escape'=>false, 'target'=>'_blank')
    );
?>